package com.easy.utils.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 学生
 *
 * @author TPF
 * @since 2024/8/28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {

    // 学号
    private Integer no;
    // 姓名
    private String name;
    // 专业
    private String major;

    // 班级id
    private Integer classId;
    private ClassRoom classRoom;

    /**
     * 模拟数据库中查询到的数据
     */
    public static List<Student> getStudentList() {
        List<Student> list = new ArrayList<>();
        list.add(new Student(1, "张三", "计算机", 1, null));
        list.add(new Student(2, "里斯蓝", "金融", 2, null));
        list.add(new Student(3, "王舞", null, 3, null));
        list.add(new Student(4, "刘峰智", "计算机", 2, null));
        list.add(new Student(5, "明道", null, 2, null));
        list.add(new Student(6, "白永", "数学", 3, null));
        return list;
    }


}
